from django.contrib import admin
from django.urls import path, include, re_path

from demo1 import views
from demo1.views import *

urlpatterns = [
    re_path('^nav/(?P<nav>[a-zA-Z]+)/$', views.test),
    path('404/', views.test1, name='not_fount'),
    path('index/', views.index, name='index'),
    path('article/add/', AddArticleView.as_view(), name='AddArticle'),
    path('article/<int:id>/', ArticleDetail.as_view(), name='ArticleDetail'),
    path('article/user/', ArticleUser.as_view(), name='ArticleUser'),
    path('article/update/<int:id>/', ArticleUpdate.as_view(), name='ArticleUpdate'),
    path('article/delete/<int:id>/', ArticleDelete.as_view(), name='ArticleDelete'),
]
